<%--
*
* 描述：桌面
*
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title></title>
		<%@include file="/share/header.jsp"%>
		<s:head />
		<link href="<%=path%>/main/dsnc/css/userDesktop.min.css" rel="stylesheet" type="text/css">	
		<link href="<%=path%>/main/dsnc/css/common.min.css" rel="stylesheet" type="text/css">	
	</head>
<script>
	function onDoLoad(){
		 onDoLoadURL('todoTd','待办事项','<s:url namespace="main" action="todo_dsnc"/>');	
		 onDoLoadURL('faqTd','常见问题','<s:url namespace="main" action="faq_dsnc"/>?pageSize=5&page=1');	
		 onDoLoadURL('notificationTd','通知公告','<s:url namespace="main" action="notification_dsnc"/>?pageSize=5&page=1');
		 
		 <s:if test="@java.lang.Integer@parseInt(getConfigValue('desktop_todo_refresh_frequency'))>0">
		 	setInterval("onDoLoadURL('todoTd','待办事项','<s:url namespace="main" action="todo_dsnc"/>')",<s:property value="getConfigValue('desktop_todo_refresh_frequency')"/>*60*1000);//刷新待办事项	
		 </s:if>
		 <s:if test="@java.lang.Integer@parseInt(getConfigValue('desktop_faq_refresh_frequency'))>0">
		 	setInterval("onDoLoadURL('faqTd','常见问题','<s:url namespace="main" action="faq_dsnc"/>?pageSize=5&page=1')",<s:property value="getConfigValue('desktop_faq_refresh_frequency')"/>*60*1000);//刷新待办事项	
		 </s:if>
		 <s:if test="@java.lang.Integer@parseInt(getConfigValue('desktop_notification_refresh_frequency'))>0">
		 	setInterval("onDoLoadURL('notificationTd','通知公告','<s:url namespace="main" action="notification_dsnc"/>?pageSize=5&page=1')",<s:property value="getConfigValue('desktop_notification_refresh_frequency')"/>*60*1000);//刷新待办事项	
		 </s:if>
	}
	function onDoLoadURL(contentId,loandingTitle,url){
		var loadingHtml="";
		loadingHtml+="<div align='center'>";
		loadingHtml+="	<img src='<%=path%>/image/loading_2.gif'><br><span style='color:#004490;'>我正在努力查找"+loandingTitle+"中，一会就好了，请耐心等待...</span>";
		loadingHtml+="</div>";			
		document.getElementById(contentId).innerHTML=loadingHtml;
		$.ajax({
		   type: "POST",
		   dataType: "html",
		   url: url,
		   success: function(data){
			   	document.getElementById(contentId).innerHTML=data;
		   },
		   error:function(data){
				top.MyWindow.tips({
					content : '对不起！获取【'+loandingTitle+'】操作失败，请与系统管理员联系！!',
					title : '错误',
					type : 'error',
					container : top					
				});			        
		   }
		 });			
	}
	function onDoBrowse(title,url,multiplewidth,multipleheight){
		var options={
			title:'【'+title+'】',
			url:url,
			source : window,
			buttons:[top.MyWindow.Close],
			multiplewidth:multiplewidth,
			multipleheight:multipleheight,
			tipstitle:'',
			tipscontent:''
		};			
		top.MyWindow.open(options);
	}
</script>	
	<body onload="onDoLoad()">
<%--		<div class="desktopTop">--%>
<%--		  <ul>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" /><a href="void:(0)">农场管理农场管理1</a></li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理2</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理农场管理3</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理4</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理农场管理5</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" /><a href="void:(0)">农场管理农场管理1</a></li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理2</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理农场管理3</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理4</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理农场管理5</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" /><a href="void:(0)">农场管理农场管理1</a></li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理2</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理农场管理3</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理4</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理农场管理5</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" /><a href="void:(0)">农场管理农场管理1</a></li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理2</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理农场管理3</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理4</li>--%>
<%--		    <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_shortcut.png" width="16" height="16" />农场管理农场管理5</li>--%>
<%--		  </ul>--%>
<%--		  <div style="clear:both;"></div>--%>
<%--		</div>--%>
		<table width="100%" border="0" cellspacing="10" cellpadding="0">
		  <tr>
		    <td width="50%" rowspan="2">
				<div class="deskTopMed">
				  <div class="deskTopMedTitle"><img src="<%=path%>/main/dsnc/image/icon_dbsx.png" width="16" height="16" />待办事项
				          <div class="iconReflesh" onMouseOver="this.className='iconRefleshHover'" onMouseOut="this.className='iconReflesh'" title="重新统计待办事项" onclick="onDoLoadURL('todoTd','待办事项','<s:url namespace="main" action="todo_dsnc"/>')"></div>
				  </div>
				  <div class="deskTopTodoMedContant"  id="todoTd">		    

				  </div>
				</div>					
		    </td>
		    <td>
		      <div class="deskTopMed">
		        <div class="deskTopMedTitle"><img src="<%=path%>/main/dsnc/image/icon_tzgg.png" width="16" height="16" />通知公告
                  <div class="iconReflesh" onMouseOver="this.className='iconRefleshHover'" onMouseOut="this.className='iconReflesh'"   onclick="onDoLoadURL('notificationTd','通知公告','<s:url namespace="main" action="notification_dsnc"/>')" title="查找最新通知公告"></div>
                  <div class="iconMore" onMouseOver="this.className='iconMoreHover'" onMouseOut="this.className='iconMore'" onclick="onDoBrowse('通知公告','<s:url action="more" namespace="/basic/notification"/>',1,1)" title="查看更多最新通知公告"></div>
                </div>
		        <div class="deskTopMedContant" id="notificationTd">

		        </div>
		      </div>
		    </td>
		  </tr>
<%--		    <td>--%>
<%--		      <div class="deskTopMed">--%>
<%--		        <div class="deskTopMedTitle"><img src="<%=path%>/main/dsnc/image/icon_sjjl.png" width="16" height="16" />升级记录--%>
<%--                  <div class="iconReflesh" onMouseOver="this.className='iconRefleshHover'" onMouseOut="this.className='iconReflesh'"></div>--%>
<%--                  <div class="iconMore" onMouseOver="this.className='iconMoreHover'" onMouseOut="this.className='iconMore'"></div>		        --%>
<%--		        </div>--%>
<%--		        <div class="deskTopMedContant">--%>
<%--                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">--%>
<%--                    <tr>--%>
<%--                      <td align="center" valign="middle" class="tzggIcon"><img src="<%=path%>/main/dsnc/image/tzgg_icon.png" width="20" height="20" /></td>--%>
<%--                      <td align="left" valign="middle"><a href="void:(0)">【2012年04月12日】关于什么什么的通知1</a><img src="<%=path%>/main/dsnc/image/new.gif" border="0" /></td>--%>
<%--                    </tr>--%>
<%--                    <tr>--%>
<%--                      <td align="center" valign="middle" class="tzggIcon"><img src="<%=path%>/main/dsnc/image/tzgg_icon.png" width="20" height="20" /></td>--%>
<%--                      <td align="left" valign="middle">【2012年04月12日】关于什么什么的通知2</td>--%>
<%--                    </tr>--%>
<%--                    <tr>--%>
<%--                      <td align="center" valign="middle" class="tzggIcon"><img src="<%=path%>/main/dsnc/image/tzgg_icon.png" width="20" height="20" /></td>--%>
<%--                      <td align="left" valign="middle">【2012年04月12日】关于什么什么的通知3</td>--%>
<%--                    </tr>--%>
<%--                    <tr>--%>
<%--                      <td align="center" valign="middle" class="tzggIcon"><img src="<%=path%>/main/dsnc/image/tzgg_icon.png" width="20" height="20" /></td>--%>
<%--                      <td align="left" valign="middle">【2012年04月12日】关于什么什么的通知4</td>--%>
<%--                    </tr>--%>
<%--                    <tr>--%>
<%--                      <td align="center" valign="middle" class="tzggIcon"><img src="<%=path%>/main/dsnc/image/tzgg_icon.png" width="20" height="20" /></td>--%>
<%--                      <td align="left" valign="middle">【2012年04月12日】关于什么什么的通知5</td>--%>
<%--                    </tr>--%>
<%--                  </table>--%>
<%--                </div>--%>
<%--		      </div>--%>
<%--		    </td>--%>
		  <tr>
		    <td>
		      <div class="deskTopMed">
		        <div class="deskTopMedTitle"><img src="<%=path%>/main/dsnc/image/icon_cjwt.png" width="16" height="16" />常见问题
                  <div class="iconReflesh" onMouseOver="this.className='iconRefleshHover'" onMouseOut="this.className='iconReflesh'"  onclick="onDoLoadURL('faqTd','常见问题','<s:url namespace="main" action="faq_dsnc"/>')" title="查找最新常见问题"></div>
                  <div class="iconMore" onMouseOver="this.className='iconMoreHover'" onMouseOut="this.className='iconMore'" onclick="onDoBrowse('常见问题','<s:url action="more" namespace="/system/faq"/>',1,1)" title="查找更多最新常见问题"></div>		        
		        </div>
		        <div class="deskTopMedContant"  id="faqTd">

		        </div>
		      </div>
		    </td>
		  </tr>
<%--		  <tr>--%>
<%--		    <td colspan="2">--%>
<%--		    <div class="deskTopMed">--%>
<%--		        <div class="deskTopMedTitle"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />常用查询</div>--%>
<%--		        <div class="deskTopMedContant" style="height:auto;">--%>
<%--		          <ul>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" /><a href="void:(0)">农场管理1</a></li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理农场管理2</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理3</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理农场管理4</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理5</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" /><a href="void:(0)">农场管理1</a></li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理农场管理2</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理3</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理农场管理4</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理5</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" /><a href="void:(0)">农场管理1</a></li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理农场管理2</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理3</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理农场管理4</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理5</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" /><a href="void:(0)">农场管理1</a></li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理农场管理2</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理3</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理农场管理4</li>--%>
<%--		            <li class="shortcut" onmouseover="this.className='shortcutHover'" onmouseout="this.className='shortcut'"><img src="<%=path%>/main/dsnc/image/icon_find.png" width="16" height="16" />农场管理5</li>		            		            		            --%>
<%--		          </ul>--%>
<%--		          <div style="clear:both;"></div>--%>
<%--		        </div>--%>
<%--		      </div>--%>
<%--		    </td>--%>
<%--		  </tr>--%>
		</table>
	</body>
</html>
